<?php
/**
 * Base class that require for multi-tab action
 *
 * @package     nuo
 * @subpackage  nuo.controller
 * @author      Nam Nguyen <nam.ngvan@gmail.com>
 * @version     1.0
 * @since       Apr 19, 2013
 */
class Nuo_Controller_Tab extends Nuo_Controller
{

	/**
	 * multi table process
	 * @access  public
	 * @param   Nuo_Request  $request
	 * @return  string
	 */
	function execute($request)
	{
		$path = $request -> getPath();

		$tab = $request -> getParam('tab', 'general');

		$element = Nuo::getApi('core/tab') -> getElement($path, $tab);

		return Nuo::getView() -> renderWidget($element, $request -> getParams());
	}

}
